import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'material-symbols:border-all-rounded',
      order: 10,
      title: '订单管理',
    },
    name: 'Order',
    path: '/order',
    redirect: '/order/order-list',
    children: [
      {
        name: 'OrderList',
        path: 'order-list',
        component: () => import('#/views/order/order-list/index.vue'),
        meta: {
          title: '订单处理',
        },
      },
    ],
  },
];

export default routes;
